package com.augmentum.login.service;

import java.util.List;

import com.augmentum.login.exception.ParamException;
import com.augmentum.login.exception.ServiceException;
import com.augmentum.login.model.Exam;
import com.augmentum.login.model.Page;

public interface ExamService {

    public void addExam(Exam exam) throws ParamException, ServiceException;
    public void modifyExam(Exam exam) throws ParamException;
    public Exam getExamByName(String name);
    public void removeBathExams(String examStr, String type, int state);
    public List<Exam> searchExamsByPage(String name, String description, String order, Page page);
    public int getExamCount(String name, String description);
    public List<Exam> searchDraftByPage(String name, Page page);
    public Exam getExamById(int id);
    public int getDraftCount(String name);
}
